﻿using System;
using System.IO;
using UnityEngine;

// Token: 0x020002DC RID: 732
[Serializable]
public class CharFileInfoStatusMale : global::CharFileInfoStatus
{
	// Token: 0x060011E3 RID: 4579 RVA: 0x00091BC4 File Offset: 0x0008FDC4
	public CharFileInfoStatusMale()
	{
		this.clothesState = new byte[Enum.GetNames(typeof(global::CharDefine.ClothesStateKindMale)).Length];
		this.MemberInitialize();
	}

	// Token: 0x060011E4 RID: 4580 RVA: 0x00091C30 File Offset: 0x0008FE30
	public new virtual void MemberInitialize()
	{
		base.MemberInitialize();
	}

	// Token: 0x060011E5 RID: 4581 RVA: 0x00091C38 File Offset: 0x0008FE38
	public override bool SaveSub(BinaryWriter bw)
	{
		bw.Write(this.visibleSon);
		bw.Write(this.visibleSonAlways);
		bw.Write(this.visibleBodyAlways);
		bw.Write(this.visibleSimple);
		bw.Write(this.simpleColor.r);
		bw.Write(this.simpleColor.g);
		bw.Write(this.simpleColor.b);
		bw.Write(this.simpleColor.a);
		bw.Write(this.clothesState.Length);
		for (int i = 0; i < this.clothesState.Length; i++)
		{
			bw.Write(this.clothesState[i]);
		}
		return true;
	}

	// Token: 0x060011E6 RID: 4582 RVA: 0x00091CF0 File Offset: 0x0008FEF0
	public override bool LoadSub(BinaryReader br, int statusVer)
	{
		this.visibleSon = br.ReadBoolean();
		this.visibleSonAlways = br.ReadBoolean();
		this.visibleBodyAlways = br.ReadByte();
		if (2 <= statusVer)
		{
			this.visibleSimple = br.ReadBoolean();
			this.simpleColor.r = br.ReadSingle();
			this.simpleColor.g = br.ReadSingle();
			this.simpleColor.b = br.ReadSingle();
			this.simpleColor.a = br.ReadSingle();
		}
		int num = br.ReadInt32();
		for (int i = 0; i < num; i++)
		{
			this.clothesState[i] = br.ReadByte();
		}
		return true;
	}

	// Token: 0x040017E6 RID: 6118
	public bool visibleSon = true;

	// Token: 0x040017E7 RID: 6119
	public bool visibleSonAlways = true;

	// Token: 0x040017E8 RID: 6120
	public byte visibleBodyAlways = 1;

	// Token: 0x040017E9 RID: 6121
	public bool visibleSimple;

	// Token: 0x040017EA RID: 6122
	public Color simpleColor = new Color(0.188f, 0.286f, 0.8f, 0.5f);
}
